package com.itheima.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mapper.UmsMemberLevelMapper;
import com.itheima.pojo.UmsMemberLevel;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class UmsMemberLevelImpl implements UmsMemberLevelApi{

    @Autowired
    private UmsMemberLevelMapper mapper;


    /**
     * 查询所有会员等级
     */
    @Override
    public List<UmsMemberLevel> list(Integer defaultStatus) {
        LambdaQueryWrapper<UmsMemberLevel> lqw = new LambdaQueryWrapper<>();
        lqw.ne(UmsMemberLevel::getId,0);
        List<UmsMemberLevel> umsMemberLevelList = mapper.selectList(lqw);
        return umsMemberLevelList;
    }
}
